var include = new_box.getElementsByTagName("box");
if (include)
{
var cmb_tmp;
for (var i = 0; i < include.length; i++)
{
cmb_tmp = include.item(i);
if (!cmb_tmp.getAttribute('filename')) continue;
for (var j = 0; j < requests.length; j++)
if (requests[j][0] == cmb_tmp.getAttribute('id')) break;
if (requests.length > 0 && j == requests.length)
{
requests[j] = new Array();
requests[j][0] = cmb_tmp.getAttribute('id');
requests[j][1] = rid;
requests[i][2] = '3';
nestedXML = true;
}
}
}
}
}
commentsbar_ff_blockPopupsInit();
requests[cur_req][2] = '1';
wait = 0;
//next request can be send
if (all_req_send == 1) //all requests are processed
{
cur_req = -1;
if (nestedXML)
{
nestedXML = false;
commentsbar_ff_update_layout();
}
}
} catch(e) {
if (debugmode) cbLog(e);
}
}
function commentsbar_ff_Reload()
{
try {
commentsbar_ff_replacemacros();
wait = 0;
cur_req = -1;
for (var i = 0; i < requests.length; ++i) requests[i][2] = '0';
commentsbar_ff_update_layout();
refresh_include_xml_type = 'OnDocumentComplete';
commentsbar_ff_refresh_layout();
var tb = document.getElementById('commentsbar_ff-toolbar');
if (commentsbar_ff_tool.ToolbarFace=="") tb.setAttribute('style', "max-height:20pt");
else if (commentsbar_ff_tool.ToolbarFace.indexOf("#")==0) tb.setAttribute('style',"max-height:20pt;background-color:"+commentsbar_ff_tool.ToolbarFace);